windisch.array.fill_xarray_from_input_parameters

windisch.array.fill_xarray_from_input_parameters(tip: TurbinesInputParameters, sensitivity: bool = False, scope: dict | None = None) Tuple[Tuple, DataArray]

Create an xarray labeled array from the sampled input parameters.

This function extracts the parameters’ names and values contained in the parameters attribute of the TurbinesInputParameters class in turbines_input_parameters and insert them into a multi-dimensional numpy-like array from the xarray package (http://xarray.pydata.org/en/stable/).

Parameters:
  • sensitivity

  • tip – Instance of the TurbinesInputParameters class in turbines_input_parameters.

  • scope – a dictionary to narrow down the scope of vehicles to consider

Returns:

tuple, xarray.DataArray

  • tuple (size_dict, application_dict, parameter_dict, year_dict)

  • array

Dimensions of array:

  1. Turbine size (in kW), e.g. “100”, “500”. str.

  2. Application, e.g. “onshore”, “offshore”. str.

  3. Year. int.

  4. Samples.